package com.example.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;
import java.util.Map;

@Controller
public class HelloController {

    @RequestMapping("/success")
    public String hello(Map<String,Object> map){
        map.put("hello","这是test");
        map.put("hello2","<h1>这是test<h1/>");
        map.put("lists", Arrays.asList("1","2","3"));
        return "success";
    }

}
